package start.spring.basic.report.controller.filltemplete;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.common.security.annotation.RequiresPermissions;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import start.spring.basic.log.ServiceLog;
import start.spring.basic.report.common.SysConstant;
import start.spring.basic.report.controller.BaseController;
import start.spring.basic.report.service.filltemplete.ISysPluginService;
import start.spring.basic.report.vo.filltemplete.TableInfo;
import start.spring.basic.response.ResponseData;

/**
 * 
 * ****************************************************************************
 * @author(作者)：xuyongyun	
 * @date(创建日期)：2024年1月8日
 ******************************************************************************
 */
@RestController
@RequestMapping("/plugin")
@Api(tags = "系统插件相关接口")
public class SysPluginController extends BaseController {
	
	@Autowired
	private ISysPluginService sysPluginService;

	@ServiceLog(businessType = "查询用于填报数据表结构信息", systemType = SysConstant.SYSTEM_TYPE, recordResult = false, userId = "")
    @RequiresPermissions("report:templetedesign:edit")
    @GetMapping("/query/dbtree")
    @ApiOperation(value = "修改模板设计", notes = "")
	public ResponseData<List<TableInfo>> queryDbtree() {
		return this.sysPluginService.queryDbtree();
	}
	
}
